﻿
namespace Soundteller.AudioVisual.Model
{
    public class IntersectionCalculator
    {
        public static bool Intersects(int pointX, int pointY, int areaX, int areaY, int areaWidth, int areaHeight)
        {
            return (pointX >= areaX && pointX <= (areaX + areaWidth)
                && (pointY >= areaY && pointY <= (areaY + areaHeight))
            );
        }
    }
}
